<?php
/**************************************************************************
 * Naanal PHP Framework, Simple, Efficient and Developer Friendly
 * Copyright (C) <2010>  <Tamil Amuthan. R>
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 ************************************************************************/

class ClsWFeature extends ClsNaanalController
{
	protected $id=null;
  protected $name=null;
	  
public $tableName=null;
    
	function __construct()
	{
		$this->rand=rand(1,99999);
		$this->tableName="feature";
	}

	function get_id()
	{
		return $this->id;
	}
	function set_id($id)
	{
		$this->id=$id;
	}
	
  	public function get_name()
  	{
  		return $this->name;
  	}
  	public function set_name($name)
  	{
  		$this->name=$name;
  	}
  
	function getArray()
	{
		$arr=null;
		$arr["id"]=$this->get_id();
  		$arr["name"]=$this->get_name();
  	
		return $arr;
	}
	function setArray($arr)
	{
		if(isset($arr["id"])) $this->set_id($arr["id"]);
  		if(isset($arr["name"])) $this->set_name($arr["name"]);
  		
		return $arr;		
	}
 
}	
?>